home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Demos / Bowers Development / AppMaker 2.0b5 / Examples / Windows MFC / MFC generated / CDemo1DlgView.h < prev    next >
Text File  |  1996-01-01  |  909b  |  42 lines

  1. // CDemo1DlgView.h -- view class
  2. // Created 01/01/95 12:01 PM by AppMaker
  3.  
  4.  
  5. class CDemo1DlgView : public CView
  6. {
  7. // Attributes
  8. public:
  9.     virtual ~CDemo1DlgView();
  10.     virtual void OnDraw(CDC *pDC);    
  11.     CDemo1DlgDoc *GetDocument();
  12.  
  13. #ifdef _DEBUG
  14.     virtual void AssertValid() const;
  15.     virtual void Dump(CDumpContext& dc) const;
  16. #endif
  17.  
  18. protected: // create from serialization only
  19.     CDemo1DlgView();
  20.     DECLARE_DYNCREATE(CDemo1DlgView)
  21.  
  22.     // Message maps
  23. protected:
  24.     DECLARE_MESSAGE_MAP()
  25.  
  26.     virtual BOOL OnPreparePrinting(CPrintInfo *pInfo);
  27.     virtual void OnBeginPrinting(CDC *pDC, CPrintInfo *pInfo);
  28.     virtual void OnEndPrinting(CDC *pDC, CPrintInfo *pInfo);
  29.  
  30.     //{{AFX_MSG(CDemo1DlgView)
  31.         afx_msg void OnTestDialog1();
  32.         afx_msg void OnTestDialog2();
  33.     //}}AFX_MSG
  34. };
  35.  
  36. #ifndef _DEBUG    // debug version in CDemo1DlgView.cpp
  37. inline CDemo1DlgDoc *CDemo1DlgView::GetDocument()
  38. {
  39.     return (CDemo1DlgDoc*) m_pDocument; 
  40. }
  41. #endif
  42.